import request from "../request.js"

//求职端登录
export const cellphoneLogin = data => {
    return request.post('/member-v1/auth/member/auth/cellphone-login', data)
}

export const sendCode = data => {
    return request.post('/common-v1/sms/sendSms', data)
}

//求职端退出登录
export const memberLoginOut = data => {
    return request.post('/member-v1/auth/member/auth/login-out', data)
}

//////////////////////////////////////

//企业登录
export const enterpriseLogin = data => {
    return request.post('/contract-v1/auth/cellphone-login', data)
}
//发送验证码
export const sencode = data => {
    return request.post('/contract-v1/auth/cellphone-login', data)
}

//退出登录
export const enterpriseLoginOut = data => {
    return request.post('/contract-v1/auth/login-out', data)
}

export const memberWxMiniLogin = data => {
    return request.post('/member-v1/auth/member/auth/wxMini-login', data);
}
export const userWxMiniLogin = data => {
    return request.post('/contract-v1/auth/auth/wxMini-login', data);
}
export const wxMiniInfo = data => {
    return request.post('/common-v1/wechat/user-info', data);
}

export const register = data => {
    return request.post('/member-v1/auth/member/auth/register', data);
}
